import { wjRequest } from '..'
import { IloginData } from './types'
enum LoginRequest {
  Login = '/login',
  UserInfoById = '/user/',
  RoleMenuById = '/role/'
}
export function loginAccountRequest(data: IloginData) {
  return wjRequest.post({
    url: LoginRequest.Login,
    data: data
  })
}
export function loginGetUserInfo(id: number) {
  return wjRequest.get({
    url: LoginRequest.UserInfoById + id
  })
}
export function loginRoleMenuReequest(id: number) {
  return wjRequest.get({
    url: LoginRequest.RoleMenuById + id + '/menu'
  })
}
